package com.qf.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class User implements Serializable {
    private Integer id;
    private String username;
    private String password;
    private String phone;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime; // 数据库的create_time字段,这里转驼峰
    private Double money;
    private Integer sex;
}
